package com.hr.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hr.bean.Department;
import com.hr.mapper.DepartmentMapper;
import com.hr.service.IDepartmentService;
import com.hr.vo.ResultSet;
import com.hr.vo.ResultStatus;
@Service
public class DepartmentServiceImpl implements IDepartmentService {

	@Autowired
	private DepartmentMapper departmentMapper;

	@Override
	public ResultSet listAll() {
		List<Department> deplist = departmentMapper.listAll();
		ResultSet r = new ResultSet(ResultStatus.SUCCESS, "查询部门列表成功", deplist.size(), deplist);
		return r;
	}

}
